
#include "InputSingleton.h"
#include "Input.h"
#include "assert.h"

InputSingleton::InputSingleton()
{
}

InputSingleton::~InputSingleton()
{
}


///////////////// Singleton instance

InputInterface * InputSingleton::instance=NULL;

InputInterface & InputSingleton::getInstance()
{
	assert( instance != NULL );
	return *instance;
}

void InputSingleton::createInstance()
{
	instance = new Input();
}

void InputSingleton::deleteInstance()
{
	assert( instance != NULL );
	delete instance;
	instance = NULL;
}
